package com.lyh.crm.workbench.service;

import com.lyh.crm.vo.PaginationVO;
import com.lyh.crm.workbench.domain.Contacts;
import com.lyh.crm.workbench.domain.ContactsRemark;
import com.lyh.crm.workbench.domain.Customer;
import com.lyh.crm.workbench.domain.Tran;

import java.util.List;
import java.util.Map;

public interface ContactsService {

    boolean save(Contacts con);

    PaginationVO<Contacts> pageList(Map<String, Object> map);

    boolean deleteByIds(String[] ids);

    Map<String, Object> getUserListAndContacts(String id);

    boolean update(Contacts con);

    boolean deleteById(String id);

    Contacts detail(String id);

    List<ContactsRemark> getRemarkListByAid(String contactsId);

    boolean deleteRemark(String id);

    boolean saveRemark(ContactsRemark cr);

    boolean updateRemark(ContactsRemark cr);

    boolean unbund(String id);

    boolean bund(String contactsId, String[] aids);

    List<Contacts> getContactsByCustomerName(String customerName);

    List<Contacts> getContactsListByName(Map<String, Object> map);

    boolean changeCustomerId(Tran t);
}
